import { Module } from '@nestjs/common';
import { ProductService } from './product.service';
import { ProductController } from './product.controller';

import { Product } from '../entities/product.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ProductOption } from 'src/entities/product-option.entity';
import { ProductOptionsModule } from 'src/product-options/product-options.module';
import { ProductOptionsService } from 'src/product-options/product-options.service';
import { Category } from 'src/entities/category.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Product, ProductOption, Category]), ProductOptionsModule],
  controllers: [ProductController],
  providers: [ProductService, ProductOptionsService],
  exports: [ProductService]
})

export class ProductModule {}
